package io.coderyeah.ymcc.mapper;

import io.coderyeah.ymcc.domain.KillActivity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author coderyeah
 * @since 2022-11-08
 */
@Repository
public interface KillActivityMapper extends BaseMapper<KillActivity> {

    @Select("SELECT * FROM `ymcc-kill`.t_kill_activity WHERE TO_DAYS(start_time) =TO_DAYS(NOW())")
    List<KillActivity> getCurrentData();
}
